import time
import os
from apps.project.business.zentao import ZenTaoBusiness
from apps.interface.business.interfaceapimsg import InterfaceApiMsgBusiness
from apps.project.middle.zt_case import CaseData
from apps.project.middle.xmind import Xmind
from apps.auth.extentions import parse_pwd
from flask import current_app, g
from library.trpc import Trpc
from multiprocessing import Process


class ZenTao(object):
    
    def __init__(self, import_type, path, file_suffix):
        self.import_type = import_type
        self.path = path
        self.file_suffix = file_suffix
    
    def check_case_type(self):
        """校验用例导入的类型
        :return:
        """
        # x mind导入
        if self.file_suffix == 'xmind':
            return Xmind(self.import_type, self.path).case_type_check()
